﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DllDeezerDev;

namespace DllDezzerDev
{
    public class Event
    {
        #region Champs
        private string _id = " inconnue ";
        private string _title = " inconnue ";
        private List<Artist> _lesArtists = new List<Artist>();
        private Venue _maVenue = new Venue();
        private string _dateDebut = " inconnue ";
        private string _affiche = " inconnue ";
        private string _url = " inconnue";
        private string _description = " inconnue ";

        
        #endregion

        #region Propriete

        public string id
        {
            get { return _id; }
            set { _id = value; }
        }
        

        public string title
        {
            get { return _title; }
            set { _title = value; }
        }
        

        public List<Artist> lesArtists
        {
            get { return _lesArtists; }
            set { _lesArtists = value; }
        }
        

        public Venue maVenue
        {
            get { return _maVenue; }
            set { _maVenue = value; }
        }
        

        public string dateDebut
        {
            get { return _dateDebut; }
            set { _dateDebut = value; }
        }
        

        public string affiche
        {
            get { return _affiche; }
            set { _affiche = value; }
        }
        

        public string url
        {
            get { return _url; }
            set { _url = value; }
        }

        public string description
        {
            get { return _description; }
            set { _description = value; }
        }
        #endregion

        #region Methode
        /// <summary>
        /// Contructeur par default
        /// </summary>
        public Event()
        {

        }
        /// <summary>
        /// Contructeur 
        /// </summary>
        /// <param name="id"> ID de l'event</param>
        /// <param name="title"> Titre de l'event</param>
        /// <param name="lesArtists">liste des artiste</param>
        /// <param name="maVenue">Localisation de l'event</param>
        /// <param name="dateDebut"> Date de l'event</param>
        public Event(string id, string title, List<Artist> lesArtists, Venue maVenue, string dateDebut, string url,string affiche)
        {
            this.id = id;
            this.title = title;
            this.lesArtists = lesArtists;
            this.maVenue = maVenue;
            this.dateDebut = dateDebut;
            this.url = url;
            this.affiche = affiche;
        }
        public override string ToString()
        {
            return this.title + " " + maVenue.localisation.Ville;
        }

        #endregion

    }
}
